﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class SharedData
    {        
        #region private properties for storage

        private static string _HostName = "";
        private static string _DefaultHost = "10.68.65.11";
        private static string _DownloadPath;
        private static List<RegionEntity> _RegionList;
        private static List<StatusEntity> _StatusList;
        private static List<SampleEntity> _SampleList;
        private static List<PermissionEntity> _PermissionList;
        private static List<CollectorEntity> _CollectorList;
        private static List<ResultStatusEntity> _ResultStatusList;
        private static List<CallStatusEntity> _CallStatusList;
        private static List<BrandEntity> _BrandList;
        private static string _C2Policy;
        private static string _E1Policy;
        private static string _E2Policy;
        #endregion

#region public properties for transfer data

        public static string HostName
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_HostName))
                {
                    return _DefaultHost;
                }
                else
                {
                    return _HostName;
                }
            }
            set 
            {
                _HostName = value;
            }
        }

        public static string DownloadPath
        {
            get { return _DownloadPath; }
            set { _DownloadPath = value; }
        }

        #region TaskConfig
        public static string C2Policy
        {
            get { return _C2Policy; }
            set { _C2Policy = value; } 
        }
        public static string E1Policy
        { 
            get { return _E1Policy; } 
            set { _E1Policy = value; } 
        }
        public static string E2Policy
        { 
            get{return _E2Policy;}
            set { _E2Policy = value; }
        }         
#endregion

        #region StorageData
        public static List<RegionEntity> RegionList
        {
            get { return _RegionList;}
            set { _RegionList = value;}
        }
        public static List<StatusEntity> StatusList
        {
            get { return _StatusList; }
            set { _StatusList = value; }
        }
        public static List<SampleEntity> SampleList
        {
            get { return _SampleList; }
            set { _SampleList = value; }
        }
        public static List<PermissionEntity> PermissionList
        {
            get { return _PermissionList; }
            set { _PermissionList = value; }
        }
        public static List<CollectorEntity> CollectorList
        {
            get { return _CollectorList; }
            set { _CollectorList = value;}
        }
        public static List<CallStatusEntity> CallStatusList
        {
            get { return _CallStatusList; }
            set { _CallStatusList = value; }
        }
        public static List<ResultStatusEntity> ResultStatusList
        {
            get { return _ResultStatusList; }
            set { _ResultStatusList = value; }
        }
        public static List<BrandEntity> BrandList
        {
            get { return _BrandList; }
            set { _BrandList = value; }
        }

        #endregion
#endregion

    }
}
